const mutations = {
    // 更改state的值 commit方法
    setIsLogin(state, payload) {
        state.user.isLogin = payload;
    },
    addCart(state, payload) {
        state.cartCount = payload.count
    }
}

export default mutations;